import java.io.File;
import java.util.Timer;
import java.util.TimerTask;

/**
 * @author YX
 * @date 2022/12/27 10:58
 */
public class Main {

    private static final File file = new File("C:/Users/Public/Desktop/EasyConnect.lnk");

    public static void main(String[] args) {


        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {
                if (file.exists() && file.isFile()) {
                    file.delete();
                }
            }
        };

        Timer timer = new Timer("delEasyConLink");
        timer.scheduleAtFixedRate(timerTask, 0, 100);


    }


}
